/**
 * 
 */
package com.google.code.sip.ucenter.dao.mongo;

import com.google.code.sip.core.dao.mongo.GenericMongoDao;
import com.google.code.sip.ucenter.dao.CreditTypeDao;
import com.google.code.sip.ucenter.model.CreditType;

/**
 * @author Liuye
 * 
 */

public class CreditTypeDaoImpl extends GenericMongoDao<CreditType, String>
		implements CreditTypeDao {
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.google.code.sip.ucenter.dao.mongo.CreditTypeDao#getByName(java.lang.String
	 * )
	 */
	public CreditType getByName(String name) {
		return getByProperty("name", name);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.google.code.sip.ucenter.dao.mongo.CreditTypeDao#getByTitle(java.lang.
	 * String)
	 */
	public CreditType getByTitle(String title) {
		return getByProperty("title", title);
	}
}
